"use strict";
exports.__esModule = true;
var redux_model_1 = require("./model/redux.model");
var reducer = function (state, action) {
    switch (action.type) {
        case 'INCREMENT':
            return state + action.payload;
        case 'DECREMENT':
            return state - action.payload;
        default:
            return state;
    }
};
var store = new redux_model_1.Store(reducer, 0);
var action1 = {
    type: 'INCREMENT',
    payload: 100
};
store.dispatch(action1);
console.log(store.getState());
action1.type = 'DECREMENT';
store.dispatch(action1);
console.log(store.getState());
